import './index.scss';
const ToolTips = ({ text, show }: { text: string; show: boolean }) => {
  const html = show ? (
    <div className="common-tooltips">
      <div className="common-tooltip-text">{text}</div>
      <div className="common-tooltip-arrow" />
    </div>
  ) : (
    ''
  );
  return <>{html}</>;
};

export default ToolTips;
